import React from 'react'

import axios from 'axios'
export default function News () {

    const handlerClick = () => {

        axios.get('/api/home').then(res => {
            console.log(res.data)
        })
    }
    return (
        <>
            <div>News</div>
            <button onClick={handlerClick}>点击获取数据</button>
        </>

    )
}
